import grails.test.*

class AppServiceTests extends GrailsUnitTestCase {
    protected void setUp() {
        super.setUp()
    }

    protected void tearDown() {
        super.tearDown()
    }

    void testSomething() {

    }
  
  def appService = new AppService()

  void testInitPlan(){
    appService.initPlan()
    def plans = Plan.list()
    plans.each {
      println "out:${it.name} ${it.description} ${it.startWith} ${it.endWith}"
    }
    println plans.size()
  }

  void testInitMilestone(){
    appService.initMilestone()
    def entries = Entry.list()
    entries.each {
      println "${it.title} ${it.depth}"
      println ""
      println it.content
    }
    println entries.size()
  }
}
